package com.cloud.adrian.novel.common.constant;

/**
 * 全局通用常量
 * @Author: xiangguiliang
 * @version: 1.0
 * @since: 2024/05/14
 */
public class ComConstants {
    /**
     * 是
     */
    public static final Integer YES = 1;
    public static final String TRUE = "true";

    /**
     * 否
     */
    public static final Integer NO = 0;
    public static final String FALSE = "false";

    /**
     * 性别常量
     */
    public enum SexEnum {
        /**
         * 男
         */
        MALE(1, "男"),

        /**
         * 女
         */
        FEMALE(0, "女");

        private int code;
        private String desc;
        SexEnum(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public int getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

}
